import request from '@/utils/request'

// 查询归还记录列表
export function listReturnRecords(query) {
  return request({
    url: '/system/returnRecords/list',
    method: 'get',
    params: query
  })
}

// 查询归还记录详细
export function getReturnRecords(returnId) {
  return request({
    url: '/system/returnRecords/' + returnId,
    method: 'get'
  })
}

// 新增归还记录
export function addReturnRecords(data) {
  return request({
    url: '/system/returnRecords',
    method: 'post',
    data: data
  })
}

// 修改归还记录
export function updateReturnRecords(data) {
  return request({
    url: '/system/returnRecords',
    method: 'put',
    data: data
  })
}

// 删除归还记录
export function delReturnRecords(returnId) {
  return request({
    url: '/system/returnRecords/' + returnId,
    method: 'delete'
  })
}
